#ifndef MONITORDEVIDERWIDGET_H
#define MONITORDEVIDERWIDGET_H

#include <QList>
#include <QWidget>
#include "MonitorDeviderItem.h"

class MonitorDeviderWidget : public QWidget
{
    Q_OBJECT

public:
    enum DeviderMode {
        D1  = 1,
        D4  = 4,
        D8  = 8,
        D13 = 13,
        D16 = 16
    };

    explicit MonitorDeviderWidget(QWidget *parent = nullptr);

    void setMode(DeviderMode newMode);

    void nextSelectedItem();
signals:

protected:
    void resizeEvent(QResizeEvent *event) override;

    void rebuild();

private:
    DeviderMode mMode;
    QList<MonitorDeviderItem *> mItems;
    friend MonitorDeviderItem;
};

#endif  // MONITORDEVIDERWIDGET_H
